//
//  Array_Ex.swift
//  DawnFoundation
//
//  Created by 崔成成 on 2021/8/15.
//

import UIKit

extension Array {
    func subs(from start: Int, to end: Int) -> Array {
        var arr = Array()
        for i in 0..<count {
            if i >= start && i <= end {
                arr.append(self[i])
            }
        }
        return arr
    }

}
